<h1>All Grades Posted:</h1><br />
<?php
foreach($grade_data as $i)
{
    echo '<table border="0" cellpadding="5" bgcolor="#DDDDDD">';
    echo '<tr><td><b>Student Name:</b> ' . $i['fname'] . ' ' . $i['lname'] . '</td></tr>';
    echo '<tr><td><b>Assignment Name:</b> ' . $i['assignmentname'] . '</td>' . '<td><b>Subject:</b> ' . $i['subject'] .
         '</td></tr><tr>';
    if($i['percentscore'] != ''){echo '<td><b>Percent Score:</b> ' . $i['percentscore'] . '</td>';}
    if($i['lettergrade'] != ''){echo '<td><b>Letter Grade:</b> ' . $i['lettergrade'] . '</td>';}
    if($i['pointsawarded'] != ''){echo '<td><b>Points Awarded:</b> ' . $i['pointsawarded'] . '</td>';}
    if($i['pointspossible'] != ''){echo '<td><b>Points Possible:</b> ' . $i['pointspossible'] . '</td>';}

    echo '</tr></table><br /><br />';

}
?>
